#include "mysql.hpp"

int main() {
    DBHelper db;

    Teacher t;
    t.input();
    db.insertTeacher(t);

    std::cout << "\n根据工资范围查询教师：" << std::endl;
    db.queryBySalary(4000, 10000);

    std::cout << "\n更新教师工资：" << std::endl;
    db.updateTeacherSalary(1, 8888);

    std::cout << "\n删除教师信息：" << std::endl;
    db.deleteTeacher(1);

    return 0;
}